# Contributor: Sam Nystrom <sam@samnystrom.dev>
# Maintainer: Sam Nystrom <sam@samnystrom.dev>
pkgname=somebar
pkgver=1.0.3
pkgrel=0
pkgdesc="dwm-like bar for dwl"
url="https://sr.ht/~raphi/somebar"
arch="all"
license="MIT"
makedepends="
	cairo-dev
	meson
	pango-dev
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~raphi/somebar/archive/$pkgver.tar.gz"
options="!check" # no tests

prepare() {
	default_prepare
	cp src/config.def.hpp src/config.hpp
}

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
6294aaf3e9bc20b6fbc2221038f044ca505096e78b96981a234d0b0858d4a57bd1ffd5d1b53930b820e97b1fddf9a5149eaa1cb22e300629f92d197e3d5d7e5d  somebar-1.0.3.tar.gz
"
